package com.wangshouyu.mp.base.constant;

/**
 * @author 王守钰
 * @date 2020年08月16日 00:56
 * @description: url基础信息
 */
public interface UrlConstant {

    /**
     * 基本请求地址
     */
    String BASE_URL = "https://api.weixin.qq.com";

    /**
     * cgi-bin请求地址
     */
    String CGI_BIN_URL = BASE_URL + "/cgi-bin";

    /**
     * 获取AccessTokenUrl
     */
    String GET_ACCESS_TOKEN_URL = CGI_BIN_URL + "/token?grant_type=client_credential&appid={0}&secret={1}";

    /**
     * 授权地址
     */
    String GET_OAUTH_ACCESS_TOKEN_URL = BASE_URL + "/sns/oauth2/access_token?appid={0}&secret={1}&code={2}&grant_type=authorization_code";


    /**
     * 网页授权
     */
    String AUTHORIZE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={0}&redirect_uri={1}&response_type=code&scope={2}&state={3}#wechat_redire";


    /**
     * 展示二维码地址
     */
    String SHOW_QRCODE_URL = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket={0}";

    /**
     * 创建菜单地址
     */
    String CREATE_MENU_URL = CGI_BIN_URL + "/menu/create?access_token={0}";

    /**
     * 创建自定义菜单地址
     */
    String CREATE_PERSONALIZED_MENU_URL =  CGI_BIN_URL + "/menu/addconditional?access_token={0}";

    /**
     * 删除自定义菜单
     */
    String DEL_PERSONALIZED_MENU_UEL = CGI_BIN_URL + "/menu/delconditional?access_token={0}";

    /**
     * 匹配菜单地址
     */
    String MATCH_MENU_URL = CGI_BIN_URL + "/menu/trymatch?access_token={0}";

    /**
     * 获取菜单地址
     */
    String GET_MENU_URL = CGI_BIN_URL + "/menu/get?access_token={0}";

    /**
     * 删除菜单
     */
    String DEL_MENU_URL = CGI_BIN_URL + "/menu/delete?access_token={0}";


    /**
     * 添加客服账号
     */
    String ADD_ACCOUNT_URL = BASE_URL + "/customservice/kfaccount/add?access_token={0}";

    /**
     * 修改客服账号
     */
    String UPDATE_ACCOUNT_URL = BASE_URL + "/customservice/kfaccount/update?access_token={0}";

    /**
     * 删除客服账号
     */
    String DEL_ACCOUNT_URL = BASE_URL + "/customservice/kfaccount/del?access_token={0}";

    /**
     * 上传客服头像
     */
    String UPLOAD_ACCOUNT_HEADER_IMAGE_URL = BASE_URL + "/customservice/kfaccount/uploadheadimg?access_token={0}&kf_account={1}";

    /**
     * 客服列表
     */
    String ACCOUNT_LIST_URL = CGI_BIN_URL + "/customservice/getkflist?access_token={0}";

    /**
     * 发送客服消息
     */
    String CUSTOM_SEND_URL = CGI_BIN_URL + "/message/custom/send?access_token={0}";

    /**
     * 正在输入
     */
    String TYPING_URL = CGI_BIN_URL + "/message/custom/typing?access_token={0}";


    /**
     * 发送模板消息
     */
    String SEND_TEMPLATE_MESSAGE_URL = CGI_BIN_URL + "/message/template/send?access_token={0}";


    /**
     * 上传素材
     */
    String UPLOAD_TMP_MEDIA_URL = CGI_BIN_URL + "/media/upload?access_token={0}&type={1}";

    /**
     * 素材列表
     */
    String MEDIA_LIST_URL = CGI_BIN_URL + "/material/batchget_material?access_token={0}";


    /**
     * 创建标签
     */
    String CREATE_TAG_URL = CGI_BIN_URL + "/tags/create?access_token={0}";

    /**
     * 获取标签
     */
    String GET_TAG_URL = CGI_BIN_URL + "/tags/get?access_token={0}";

    /**
     * 更新标签
     */
    String UPDATE_TAG_URL = CGI_BIN_URL + "/tags/update?access_token={0}";

    /**
     * 删除标签
     */
    String DEL_TAG_URL = CGI_BIN_URL + "/tags/delete?access_token={0}";

    /**
     * 标签下的用户
     */
    String QUERY_TAG_USER_UEL = CGI_BIN_URL + "/user/tag/get?access_token={0}";

    /**
     * 用户打标签
     */
    String TAG_USER_URL = CGI_BIN_URL + "/tags/members/batchtagging?access_token={0}";

    /**
     * 取消用户打标签
     */
    String UN_TAG_USER_URL = CGI_BIN_URL + "/tags/members/batchuntagging?access_token={0}";

    /**
     * 用户标签地址
     */
    String USER_TAG_URL = CGI_BIN_URL + "/tags/getidlist?access_token={0}";

    /**
     * 获取用户地址
     */
    String GET_USER_URL = CGI_BIN_URL + "/user/get?access_token={0}&next_openid={1}";

    /**
     * 获取用户信息
     */
    String GET_USER_INFO = CGI_BIN_URL + "/user/info?access_token={0}&openid={1}&lang=zh_CN";

    /**
     * 批量获取用户信息
     */
    String GET_USER_INFO_LIST = CGI_BIN_URL + "/user/info/batchget?access_token={0}";



    /**
     * 生成qrcode
     */
    String GET_QRCODE_URL = CGI_BIN_URL + "/qrcode/create?access_token={0}";
}
